FROM python:3.10-slim

WORKDIR /workspace
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .
RUN python -c "from transformers import BertTokenizer; \
               BertTokenizer.from_pretrained('yiyanghkust/finbert-cn')"

CMD ["make", "pipeline"]
